﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopMenuList.aspx.cs" Inherits="YhmOA.ManagerOA.Menu.TopMenuList" %>

<%@ Register Assembly="YhmOAPager" Namespace="YhmOA.Pager" TagPrefix="YhmOA" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" rel="Stylesheet" href="../../Styles/Common.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="MainRound">
        <div class="MainRoundContent">
            <div class="MainRoundContentW">
                <div class="MainBody">
                    <div style="height: 30px; border: 1px solid #93bee2; background-color: #DAEBF6; border-bottom: 0px;
                        line-height: 30px; text-indent: 8px; font-family: 微软雅黑; font-size: 18px; font-weight: bold;
                        color: #6A6A6A;">
                        综合管理 >> 菜单管理 >> 顶部菜单管理
                    </div>
                    <div style="border: 1px solid #93BEE2; border-bottom: 0px; padding: 8px 0 8px 8px;">
                        <table>
                            <tr>
                                <td>
                                    <input class="Button" onclick="RoleVerification('1','Dialog(\'TopMenuInfo.aspx\',\'顶部菜单--添加\',\'顶部菜单\',420,105);');"
                                        style="width: 60px" type="text" value="添加" />
                                </td>
                                <td>
                                    <input class="Button" onclick="RoleVerification('3','DeleteData();');" style="width: 60px"
                                        type="text" value="删除" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txt_Search" runat="server" notAjaxRender="notAjaxRender" CssClass="TextBoxSearch"
                                        onkeyup="Search();"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <asp:GridView ID="gvShow" runat="server" Width="100%" EmptyDataText="暂无数据..." 
                        CssClass="Table" onrowcommand="gvShow_RowCommand" 
                        onrowdatabound="gvShow_RowDataBound">
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <input type="checkbox" id="allChecked" onclick="CheckedEvent('allChecked');" value="0" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <input id="ItemChk" class="ItemChk" name="ItemChk" type="checkbox" value='<%# Eval("Id") %>' />
                                </ItemTemplate>
                                <ItemStyle Width="25px" CssClass="TdCenter" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <a onclick="Sort('ID');" href="javascript:void(0);">查看</a></HeaderTemplate>
                                <ItemTemplate>
                                    <a onclick="RoleVerification('0','Dialog(\'TopMenuInfo.aspx?id=<%# Eval("Id") %>\',\'顶部菜单--查看\',\'顶部菜单\',420,105);');"
                                        href="javascript:void(0);">查看</a></ItemTemplate>
                                <ItemStyle Width="40px" CssClass="TdCenter" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <a onclick="Sort('Name');" href="javascript:void(0);">菜单名称</a></HeaderTemplate>
                                <ItemTemplate>
                                    <%#Eval("Name")%></ItemTemplate>
                                <ItemStyle Width="200px" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <a onclick="Sort('ShowOrder');" href="javascript:void(0);">显示顺序</a></HeaderTemplate>
                                <ItemTemplate>
                                    <%#Eval("ShowOrder")%></ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>向前</HeaderTemplate>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImgBtnBefore" ToolTip="向前" CommandName="ImgBtnBefore" ImageUrl="~/Images/before.png" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="80px"/>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>向后</HeaderTemplate>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImgBtnAfter" ToolTip="向后" CommandName="ImgBtnAfter" ImageUrl="~/Images/after.png" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="80px"/>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>维护子菜单</HeaderTemplate>
                                <ItemTemplate>
                                    <a href="javascript:void(0);" onclick="Dialog('TopMenuManager.aspx?topID=<%# Eval("Id") %>','维护子菜单--<%#Eval("Name")%>','维护子菜单',600,500);">维护子菜单</a>
                                </ItemTemplate>
                                <ItemStyle Width="150px"/>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="ThCenter" />
                        <RowStyle CssClass="TdCenter" />
                    </asp:GridView>
                    <YhmOA:Pager ID="gvShowPager" runat="server" />
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
